package com.ofa.base;

import java.io.Serializable;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;



@Transactional(rollbackFor=Exception.class,propagation=Propagation.REQUIRED)
public interface BaseService<T> {
	
	@Transactional(readOnly=true)
	public T get(Serializable id);

	public void delete(Serializable id);	

	public void save(T entity);
	
	public void update(T entity);
}
